<!-- directive:title 方便编程 生产假数据 -->
<!-- directive:breadcrumb 生产假数据 -->
<div class="panel-body">
    <div class="row">
        <div class="col-sm-7">
            <table class="table">
                <thead>
                    <tr> <td style="width:100px">属性名</td> <td style="width:150px">类型</td> <td style="width:100px">长度</td> <td style="width:100px">操作</td> </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in list">
                        <td>{{ row.key }}</td> <td>{{ row.type }}</td> <td>{{ row.count }}</td>
                        <td><button class="btn btn-danger" ng-click="list.splice($index, 1)" >删除</button></td>
                    </tr>
                </tbody>
                <tbody>
                    <tr>
                        <td><input class="form-control" type="text" ng-model="obj.key"/></td>
                        <td>
                            <select class="form-control" ng-model="obj.type">
                                <option value="number">number</option>
                                <option value="string">string</option>
                                <option value="chinese">chinese</option>
                                <option value="date">date</option>
                                <option value="city">city</option>
                                <option value="cname">cname</option>
                                <option value="name">name</option>
                                <option value="url">url</option>
                                <option value="email">email</option>
                                <option value="ip">ip</option>
                                <option value="guid">guid</option>
                            </select>
                        </td>
                        <td><input class="form-control" type="text" ng-model="obj.count"/></td>
                        <td><button class="btn btn-success" ng-click="add()" >提交</button></td>
                    </tr>
                </tbody>
            </table>
            <button class="btn btn-success" ng-click="make()" >生产假数据</button>
            <button class="btn btn-danger" ng-click="reset()" >清空</button>
            <h6>m1 = {{ m1 }}</h6>
        </div>
        <div class="col-sm-5">
            <dc-json json="m1"></dc-json >
        </div>
    </div>
</div>
